#include "gc_ptr.h"
#include <vector>
#include <cstdio>

int main ()
{
	gc_ptr <int> a;
	a = new int[20];
	gc_ptr <int> b;
	b = a;

	gc_ptr <double> d;

	d = new double;

	std::vector <void*> c = collect();
	for (int i = 0; i < (int)c.size(); i++)
		printf ("%p\n", c[i]);

	return 0;
}



